package fun.lumia.flink.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by LumiaO
 * on 2025/9/12.
 */
public class LoadActUserLoop {
    // {"dataclass":"load_act_user_loop","data_content":[{"cust_circuit_id":"124344656","data_time":"2025-07-21 10:10:10","load_value":1000,"point":"1"},{"cust_circuit_id":"124344656","data_time":"2025-07-21 10:10:10","load_value":1000,"point":"1"}]}
    String dataclass;

    @JSONField(name="data_content")
    List<LoadActUserLoopContent> dataContents = new ArrayList<LoadActUserLoopContent>();

    public LoadActUserLoop() {
    }

    public LoadActUserLoop(String dataclass, List<LoadActUserLoopContent> dataContents) {
        this.dataclass = dataclass;
        this.dataContents = dataContents;
    }

    public String getDataclass() {
        return dataclass;
    }

    public void setDataclass(String dataclass) {
        this.dataclass = dataclass;
    }

    public List<LoadActUserLoopContent> getDataContents() {
        return dataContents;
    }

    public void setDataContents(List<LoadActUserLoopContent> dataContents) {
        this.dataContents = dataContents;
    }

    @Override
    public String toString() {
        return "LoadActUserLoop{" +
                "dataclass='" + dataclass + '\'' +
                ", dataContents=" + dataContents +
                '}';
    }
}
